import request from '@/utils/request'

// 查询价格方案列表
export function listWay(query) {
  return request({
    url: '/hotal/way/list',
    method: 'get',
    params: query
  })
}

// 查询价格方案详细
export function getWay(wayId) {
  return request({
    url: '/hotal/way/' + wayId,
    method: 'get'
  })
}

// 新增价格方案
export function addWay(data) {
  return request({
    url: '/hotal/way',
    method: 'post',
    data: data
  })
}

// 修改价格方案
export function updateWay(data) {
  return request({
    url: '/hotal/way',
    method: 'put',
    data: data
  })
}

// 删除价格方案
export function delWay(wayId) {
  return request({
    url: '/hotal/way/' + wayId,
    method: 'delete'
  })
}
